package spring.aspectj;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainAspect {
	
	public static void main(String[] args) {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("bean.xml",MainAspect.class);
		HelloService service=(HelloService) ctx.getBean("hello");
		String result=service.getUser("hello world");
		System.out.println(result);
		
	}
}
